// 汉中库得网络科技版权所有
#pragma once

#include "CoreMinimal.h"
#include "Record.generated.h"

/**
 * 一个Record表示数据表中的一行
 */
UCLASS(Blueprintable, Category="SQLiteDbKit")
class SQLITEDBKIT_API URecord : public UObject{
	GENERATED_BODY()
public:
	UFUNCTION(BlueprintCallable, Category="SQLiteDbKit")
	URecord* Set(const FString& Key, const FString& Value);
	
	URecord* Set(const FString& Key, const int32 Value);

	UFUNCTION(BlueprintCallable, Category="SQLiteDbKit")
	FString GetString(const FString& Key) const;
	UFUNCTION(BlueprintCallable, Category="SQLiteDbKit")
	int32 GetInt(const FString& Key) const;

	TMap<FString, FString> GetMap();

private:
	TMap<FString, FString> Map;
};
